home *** CD-ROM | disk | FTP | other *** search
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 1997-99 Pandemic Studios
- //
- // Dark Reign II
- //
-
- CreateObjectType("objective_startgc", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE")
- {
- }
-
- Action()
- {
- CreateVarInteger("@.flee1", 0);
- CreateVarInteger("@.flee2", 0);
- CreateVarInteger("@.shuttle", 0);
- NewObjective("objective_flee_to_shuttle1");
- NewObjective("objective_allfleeing");
- NewObjective("objective_wander1");
- NewObjective("objective_wander2");
- NewObjective("objective_trigger_shuttle");
- }
- }
- }
-
- CreateObjectType("objective_wander1", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE")
- {
- }
-
- Action()
- {
- ExecuteScript("wander1", "squad.move.tagtotrail")
- {
- Op("%.tag", "=", "Traitors1");
- Op("%.trail", "=", "Wander1");
- }
- }
- }
- }
-
- CreateObjectType("objective_wander2", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE")
- {
- }
-
- Action()
- {
- ExecuteScript("wander2", "squad.move.tagtotrail")
- {
- Op("%.tag", "=", "Traitors3");
- Op("%.trail", "=", "Wander2");
- }
- }
- }
- }
-
- CreateObjectType("objective_trigger_shuttle", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("VarConstInteger", "@.shuttle", "==", 1);
-
- Action()
- {
- ExecuteScript("ShuttleGone", "squad.move.spawntoregion.tag.wait")
- {
- Op("%.region.src", "=", "NearShuttle");
- Op("%.types", "=", "shuttlegone");
- Op("%.tag", "=", "ShuttleGone");
- Op("%.region.dst", "=", "ShuttleGone");
- Op("%.direction", "=", 90);
- }
- }
- }
- }
-